namespace Vanilla.UI

partial class Gadget:
	private static def backend_Drag (g as Gadget):
		//print "backend_Drag(${g}) SDL.Window=${SDL.Window}"
		//g.Parent = SDL.Window
		SDL.Window.Add(g)
		g.BringToFront()
		//print "g.Parent == ${g.Parent}"
	
	private static def backend_CleanUpAndEndDrag ():
		SDL.Window.Remove(GadgetBeingDragged)
		GadgetBeingDragged = null
